package com.freesky.web.manager.remote.panel.fallback;

import com.freesky.common.dao.entity.HomeNav;
import com.freesky.common.pojo.DataTablesResult;
import com.freesky.common.utils.reponse.JSONResponse;
import com.freesky.common.utils.reponse.JSONResponseDiretor;
import com.freesky.web.manager.remote.panel.HomeNavigationRemote;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@Slf4j
public class HomeNavigationRemoteFallback implements HomeNavigationRemote {

    @Override
    public DataTablesResult list() {
        log.error("获取首页导航服务维护中");
        return null;
    }

    @Override
    public JSONResponse delete(int[] ids) {
        log.error("删除首页导航服务维护中");
        return JSONResponseDiretor.buildBadServiceJSONResponse("删除首页导航服务维护中",null);
    }

    @Override
    public JSONResponse add(HomeNav homeNav) {
        log.error("添加首页导航服务维护中");
        return JSONResponseDiretor.buildBadServiceJSONResponse("添加首页导航服务维护中",null);
    }

    @Override
    public JSONResponse update(HomeNav homeNav) {
        log.error("编辑首页导航服务维护中");
        return JSONResponseDiretor.buildBadServiceJSONResponse("编辑首页导航服务维护中",null);
    }
}
